﻿#ifndef FORMREQUESTER_H
#define FORMREQUESTER_H
#include "myhead.h"
#include "baserequester.h"
#include <QWidget>

namespace Ui {
class FormRequester;
}

class FormRequester : public QWidget
{
    Q_OBJECT

public:
    explicit FormRequester(QWidget *parent = 0);
    ~FormRequester();

    void setComm(BaseRequester *req);

private:
    Ui::FormRequester *ui;
    BaseRequester *_req;

    void setCfgWidget(QWidget *w);

    void loadUiCfg();

    void saveUiCfg();

    void sendMsg();

    QString getFormatString(QByteArray arr, bool isHex);

private slots:

    void on_btnSend_clicked();
    void on_btnRquest_clicked();
    void on_btnClear_clicked();

};

#endif // FORMREQUESTER_H
